package com.powernode.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * visit_log
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("拜访记录对象")
public class VisitLog extends Customer implements Serializable{

    /**
     * 拜访时间
     */
    @ApiModelProperty(value = "拜访时间")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date visitTime;

    /**
     * 拜访内容
     */
    @ApiModelProperty(value = "拜访内容")
    private String descp;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private static final long serialVersionUID = 1L;
}